package com.example.springboot.service;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.controller.request.UserPageRequest;
import com.example.springboot.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Description:业务层接口
 *
 * @Author 马钰涵
 * @Create 2023/8/5 9:15
 * @Version 1.0
 */
public interface IUserService {
    List<User> list();

    PageInfo<User> page(BaseRequest baseRequest);

    void save(User user);

    User getById(Integer id);

    void update(User user);

    void deleteById(Integer id);

    void addAccount(User user);

    void deleteBatch(List<Integer> ids);
}
